<script setup>
import carStore from './config/store.js';

let car = carStore();

const clickHandler = () => {
  car.$reset();
}
</script>

<template>
    <div>
      <router-view/>
      <button @click="clickHandler">点击按钮重置数据</button>
    </div>
</template>

<style scoped>
button {
  border: 1px solid black;
}
</style>
